<?php
// +----------------------------------------------------------------------
// | TYCMS [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2016 http://www.rainfer.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: aliang <461321026@qq.com>
// +----------------------------------------------------------------------

namespace app\admin\model;

use think\Model;
use think\Db;

/**
 * 文章模型
 * @package app\admin\model
 */
class GoodsOrder extends Model
{
  
    public function getinfo($id){
       $info = $this->get($id);
       $info['address_cache'] = unserialize($info['address_cache']);
       $info['goods']         = Db::name('goods')->where('id',$info['gid'])->find();
       return $info;  
    }
    
    
}
